package com.service.financialimpl;

import com.dao.FinancialMapper;
import com.model.Financial;
import com.service.FinancialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 编写者：粱嘉宝
 * 编写时间：2019-5-29
 * 类模块描述：查询及相关增删改
 */
@Service
public class FinancialServiceImpl implements FinancialService {
@Autowired
private FinancialMapper financialMapper;
    @Override
    public Financial selectByPrimaryKey(int fiid) {
        System.out.println("输入的参数为："+fiid);
        return financialMapper.selectByPrimaryKey(fiid);
    }

    @Override
    public List<Financial> getAllFin() {
        return financialMapper.getAllFin();
    }

    @Override
    public int delFin(Integer fiid) {
        return financialMapper.delFin(fiid);
    }

    @Override
    public int insertFin(Financial financialmodel) {
        return financialMapper.insertFin(financialmodel);
    }
}
